package com.bwhx.eruler.util;

import java.util.List;

public class ListUtils {

    
    /**
     * 判断集合是否是有内容的
     * @param <T>
     */
    public static <T> boolean isSubstantial (List<T> list) {

        if (list == null) {
            return false;
        }else if(list.size()==0){
        	 return false;
        }
        
        return true;

    }
 
 


	/**
	 * 判断集合是否为null或者空
	 * @param <T>
	 */
	public static <T> boolean isNullOrEmpty (List<T> list) {
	
	    if (list == null) {
	        return true;
	    }else if(list.size()==0){
	    	 return true;
	    }
	    
	    return false;
	
	}

}
